git config --global user.name "WK-BD"
git config --global user.email "iwake@live.cn"

[ ! -e /home/aistudio/btop ] \
    && wget -O /home/aistudio/btop https://ai-1323428196.cos.ap-shanghai.myqcloud.com/btop \
    && chmod +x /home/aistudio/btop

[ ! -e /home/aistudio/iliazeus.vscode-ansi-1.1.7.vsix ] \
    && wget https://open-vsx.org/api/iliazeus/vscode-ansi/1.1.7/file/iliazeus.vscode-ansi-1.1.7.vsix \
    -O /home/aistudio/iliazeus.vscode-ansi-1.1.7.vsix
/opt/conda/include/vscode/vscode/bin/remote-cli/code --install-extension /home/aistudio/iliazeus.vscode-ansi-1.1.7.vsix

[ ! -e /home/aistudio/mmpretrain ] \
    && git clone https://gitee.com/liuwake/mmpretrain.git /home/aistudio/mmpretrain

cd /home/aistudio/data/data273309
tar -xf python35-paddle120-env.tar
tar -xf mmlab.tar
pip install -q torch-1.11.0+cu113-cp310-cp310-linux_x86_64.whl \
    torchaudio-0.11.0+cu113-cp310-cp310-linux_x86_64.whl \
    torchvision-0.12.0+cu113-cp310-cp310-linux_x86_64.whl

pip install -q openmim
mim install mmcv==2.1.0
mim install mmpretrain && python -c "import mmpretrain; print(mmpretrain.__version__)"